package cn.tedu.file;

import java.io.BufferedOutputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStream;

public class Test7_out_TryCatch {
    public static void main(String[] args) {
        OutputStream ou = null;
        try{
             ou = new BufferedOutputStream(new FileOutputStream("F:\\富强民主\\44。txt"));
             ou.write(98);
             ou.write(98);
             ou.write(98);
             ou.write(98);
             ou.write(98);
        }catch (Exception e){
            e.printStackTrace();
        }finally {
            try {
                ou.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }

    }
}
